package com.example.demo.test;


import com.volcengine.service.vod.IVodService;
import com.volcengine.service.vod.impl.VodServiceImpl;
import com.volcengine.service.vod.model.request.VodGetDirectEditProgressRequest;
import com.volcengine.service.vod.model.response.VodGetDirectEditProgressResponse;

import java.util.Date;
import java.util.Objects;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

public class VodGetDirectEditProgressDemo {

    public static void main(String[] args) throws Exception {
                System.out.println(new Date().getTime());
                IVodService vodService = VodServiceImpl.getInstance();
                vodService.setAccessKey("AKLTZmEyNzdjZDc0MGVkNDU4MGI5NDAyNjkzM2I0ZDVlNDU");
                vodService.setSecretKey("WVRnM01qRTFNRGxoWW1VM05ERmpOR0ZqWldOaVpESTVOR016TjJJell6Yw==");
                vodService.setConnectionTimeout(10000);
                vodService.setSocketTimeout(10000);
                VodGetDirectEditProgressRequest vodGetDirectEditProgressRequest = VodGetDirectEditProgressRequest.newBuilder()
                        .setReqId("e01026a89d5d479fb9695a92b1f5aa10")
                        .build();
                VodGetDirectEditProgressResponse vodGetDirectEditProgressResponse = null;
                try {
                    vodGetDirectEditProgressResponse = vodService.getDirectEditProgress(vodGetDirectEditProgressRequest);
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
                if (vodGetDirectEditProgressResponse.getResponseMetadata().hasError()) {
                    System.out.println(vodGetDirectEditProgressResponse.getResponseMetadata().getError());
                    System.exit(-1);
                }
                System.out.println(vodGetDirectEditProgressResponse.toString()); // 如有汉字，请采用UTF8编码方式
                System.out.println(vodGetDirectEditProgressResponse.getResponseMetadata());
            }



}
